/**
 * 定时任务启动工厂
 */
package com.gomeplus.commons.quartz.factory;

import com.gomeplus.commons.quartz.ha.HaService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.gomeplus.commons.quartz.business.TaskListenerServerService;
import com.gomeplus.commons.quartz.cache.QuartzPropertiesCache;
import com.gomeplus.commons.quartz.netty.server.NettyServerStartup;

/**
 * @author chenmin-ds
 * 定时任务启动工厂
 */
public class TimerTaskServerStartFactory {

	private Logger logger = LoggerFactory.getLogger("TimerTaskServerStartFactory");
	
	private TaskListenerServerService taskListenerServerService;
	
	public void setTaskListenerServerService(TaskListenerServerService taskListenerServerService){
		this.taskListenerServerService = taskListenerServerService;
	}

	private HaService haService;

	public void setHaService(HaService haService) {
		this.haService = haService;
	}

	public void inits(){
		logger.info("任务系统服务端启动开始......");
		haService.setTaskListenerServerService(taskListenerServerService);
		haService.haService();
	}
	
}
